package com.itheima.d5_polymorphic.demo5;

/**
 * 鼠标类，实现USB接口
 */
public class Mouse implements USB {
    @Override
    public void insert() {
        System.out.println("接入鼠标！");
    }

    @Override
    public void close() {
        System.out.println("断开鼠标！");
    }

    /**
     * 鼠标特有功能：点击
     */
    public void click() {
        System.out.println("点击鼠标！");
    }
}
